import logo from './logo.svg';
import './App.css';
import { BrowserRouter } from 'react-router-dom';
import {Switch,Router} from 'react-router-dom';
// /component /pages /api /
import Frame from './layout/Frame';
import HookMovie from './pages/HookMovie';
import HookInfos from './pages/HookInfos';
function App() {
  return (
    <BrowserRouter>
      <Frame>
        <Switch>
          <Router exact path="/" component={HookMovie}/>
          <Router path="/infos" component={HookInfos}/>
        </Switch>
      </Frame>
    </BrowserRouter>
  );
}

export default App;
